<?php
header('Content-Type: text/event-stream');
header('Cache-Control: no-cache');

$time = date('r');
echo '{"date" : "' .$time .'"}\n\n';
flush();
?> 